const init = {
    movie:[]
}
 const movieReducer=(prevState=init,action)=>{
    const{type,data}=action
    switch(type){
        case "getMovie":
         return {...init,movie:data}   
    }

return prevState
}
export default movieReducer